package tencent

//

type Solution1 struct {
}
type Solution struct {
}

//暴力超时
func (Solution1) maxArea(height []int) int {
	max := 0
	for i := 0; i < len(height); i++ {
		tmp := 0
		for j := 0; j < i; j++ {
			min := height[j]
			if height[i] < min {
				min = height[i]
			}
			tmp = (i - j) * min
			if tmp > max {
				max = tmp
			}
		}
	}
	return max
}
